package com.starrin.tennisfinder.model;

import java.io.Serializable;
import java.util.*;

/**
 * User: Starrin
 * Date: 2013-10-19
 * Time: 16:01
 *
 */
public class VenueAvailabilityDataHolder implements Serializable {

    private Date date;

    private String venueName;

    private List<HourAvailability> hourAvailabilityList;

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getVenueName() {
        return venueName;
    }

    public void setVenueName(String venueName) {
        this.venueName = venueName;
    }

    public List<HourAvailability> getHourAvailabilityList() {
        return hourAvailabilityList;
    }


    public void addAvailability(HourAvailability hourAvailability) {
        if(this.hourAvailabilityList == null) {
            this.hourAvailabilityList = new ArrayList<>();
        }
        this.hourAvailabilityList.add(hourAvailability);
    }


}
